class Company:
    __company = '屌丝中的战斗机'
    def __init__(self,name,age):
        self.name = name
        self.__age = age

    def __work(self):
        print('好好工作，赚钱娶媳妇！！！')
        print('姓名：{},年龄：{},公司：{}'.format(self.name,self.__age,Company.__company))

c = Company('tom',20)
print(c.name)
# print(c.__age) # 报错

print(dir(c))
print(c.__dict__)
print(c._Company__age)

c._Company__work()

print(Company._Company__company)